import {Component, OnInit} from '@angular/core';
import {Router} from "@angular/router";

@Component({
    selector: 'app-setting',
    templateUrl: './setting.page.html',
    styleUrls: ['./setting.page.scss'],
})
export class SettingPage implements OnInit {
    fingerPrint: boolean;
    faceUnlock: boolean;

    constructor(private route: Router,) {
    }

    ngOnInit() {
        this.fingerPrint = false;
        this.faceUnlock = false;
    }

    goToPage(url, item = {}) {
        this.route.navigate([`/${url}`], {queryParams: {...item}}).then();
    }

    setSwitch(event, type) {
        this[type] = event;
    }

}
